//
//  ScanResultVC.swift
//  Employee
//
//  Created by swordjoy on 2017/5/19.
//  Copyright © 2017年 remotevillage. All rights reserved.
//

import UIKit

class ScanResultVC: BaseVC {
  
  var result: String = ""
  fileprivate var resultTextView: UITextView!
  
  override func viewDidLoad() {
    super.viewDidLoad()
    view.backgroundColor = UIColor.white
    addBackItem()
    
    resultTextView = UITextView(frame: CGRect(x: 10, y: 10, width: UIScreen.width - 20, height: UIScreen.height - 20))
    resultTextView.textColor = GlobalConfig.TextDeepColor
    resultTextView.font = GlobalConfig.system12Font
    resultTextView.text = result
    resultTextView.textAlignment = .left
    resultTextView.isUserInteractionEnabled = false
    
    view.addSubview(resultTextView)
  }
  
  override func viewWillAppear(_ animated: Bool) {
    super.viewWillAppear(animated)
    
    GlobalConfig.baiduStatisticsPageViewStart("扫码错误")
  }
  
  override func viewWillDisappear(_ animated: Bool) {
    super.viewWillDisappear(animated)
    
    GlobalConfig.baiduStatisticsPageViewEnd("扫码错误")
  }
}
